<%@ page contentType="text/html; charset=UTF-8" language="java"
	import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<%
	String root = request.getContextPath();
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>有钱赚-后台管理系统</title>
<link href="/admin/css/login.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/script/common/jquery.min.js" ></script>
<style type="text/css">
	ul,li{
		margin: 0px;padding: 0px;list-style: none;display: block;width: 260px;
	}
	span{
	 display: block;float: left;height: 40px;
	}
	li{
		height: 40px;text-align: center;
	}
</style>

<script type="text/javascript">

$(function(){
	
	$("#btnLogin").click(function(){
		
		var userName=$("#txtUsername").val();
		var userPassword=$("#txtUserPassword").val();
		
		var error="";
		if(userName===""){
			error+="用户名不能为空 ";
		}
		if(userPassword===""){
			error+="密码不能为空 ";
			
		}
		
		if(error===""){
			//提交用户信息
			
			///$.ajax({
			//	   type: "POST",
			///	   url: "/adminlogin.action",
			//	   data: "userName="+userName+"&userPassword="+userPassword,
			//	   success: function(result){
			///	    
			//		   var msg=eval("("+result+")");
			///		   if(msg.msg){
			//			   window.location.h
			///		   }else{
				//		   $.messager.alert('Warning',"用户名或密码错误!");
				//	   }
				///   }
			//	});
	
			
		}else{
			$.messager.alert('Warning',error);
		}
		
	});
	
	$("#resetid").click(function(){
		
		
	});
	
	
	
});


</script>
</head>

<body>
<table width="100%"  height="768" border="0" cellspacing="0" cellpadding="0" background="/admin/images/bg.jpg"   >
  <tr>
    <td><table width="1024" border="0" cellspacing="0" cellpadding="0" style="height:768px; margin:0 auto; ">
      <tr>
        <td colspan="3" height="258">
        <table width="1024" height="203" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="50" height="32">&nbsp;</td>
            <td width="310" >&nbsp;</td>
            <td width="342">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="120"><img src="/admin/images/logo.png" width="310" height="120" /></td>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td width="261">&nbsp;</td>
        <td width="475" height="380" background="/admin/images/2.png">
      
        <table width="476" border="0" cellspacing="0" cellpadding="0" id="submitform" style="padding-left: 117px;">
       	    <form action="/adminlogin.action" method="post">
       	  
       	   <div style="display: block;height: 300px;width: 400px;">
       	   		<ul style="text-align: center;padding-top: 72px;padding-left: 188px;">
       	   			
       	   			<li>
       	   			<span >用户名：</span>
       	   			<span  style="background: url('/admin/images/1.jpg' ) no-repeat;display: block;width: 169px;">
		            <input type="text"  name="username" id="txtUserName" value=""/>
		            </span>
       	   			</li>
       	   			<li>
       	   			<span >密&nbsp;&nbsp;码：</span>
       	   			<span  style="background: url('/admin/images/1.jpg' ) no-repeat;display: block;width: 169px;">
		            <input type="password"  name="password" id="txtUserPassword" value=""/>
		            </span>
       	   			</li>
       	   			
       	   			<li >
       	   			<span  style="margin:5px;margin-left:10px;margin-bottom:0px;background: url('/admin/images/3.png' ) no-repeat;display: block;width: 91px;float: left;">
		            <INPUT id="btnLogin" type="submit" value=" 登 录 " name="btnLogin">
		            </span>
		    
		            	<span  style="margin:5px;margin-left:10px;margin-bottom:0px;background: url('/admin/images/3.png' ) no-repeat;display: block;width: 91px;float: left;">
		            <INPUT id="btnLogin" type="submit" value=" 重 置 " name="btnReset">
		            </span>
       	   			</li>
       	   			
       	   			<li style="padding-top: 1px;">
       	   			<span  style="margin:0px;margin-left:10px;display: block;width: 163px;float: left;height: 20px;">
       	   				<c:if test="${ !empty  erro }">
       	   					<font color="red">${erro }</font>
       	   				</c:if>
		           		
		            </span>
		            
       	   			</li>
       	   		</ul> 
       	   		
       	   </div>
       	   </form>
        </table>
        
        
        </td>
        <td width="288">&nbsp;</td>
      </tr>
      <tr>
        <td colspan="3" >
        <table width="1024" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="388">&nbsp;</td>
            <td width="636" height="74">&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
            <td height="24" style="color:#fff;">版权所有 重庆瓦力网络科技有限公司  服务信箱:liyongit@sina.com 电话:010-627998100 传真:010-62798100-829</td>
          </tr>
        </table></td>
      </tr>
    </table></td>
  </tr>
</table>
</body>
</html>
